import { defineComponent } from "vue";
export const useButtonGroup = (list = []) => {
    return defineComponent({
        setup() {
            const buttonGroup = list.map(item => (
                <a-button
                    style={{ margin: "10px" }}
                    onClick={item.handler}>
                    {item.icon}
                    {item.text}
                </a-button>
            ))
            return () => (
                <section style={{ textAlign: "center" }}>
                    {buttonGroup}
                </section>
            )
        }
    })
}